import request from "@/utils/request";

// 查询护理任务列表
export function listTask(query) {
  return request({
    url: "/service/task/list",
    method: "get",
    params: query,
  });
}

// 查询护理任务详细
export function getTask(id) {
  return request({
    url: "/service/task/" + id,
    method: "get",
  });
}

//取消任务执行
export function updateTask(data) {
  return request({
    url: "/service/task/update",
    method: "put",
    data: data,
  });
}
